package com.ruijixiang.leetcode.everyday.leetcode2024.leetcode202409;

public class leetcode20240926 {
    public int differenceOfSum(int[] nums) {
        int sum=0;
        for(int num : nums){
            int tmp=num;
            while(num!=0){
                tmp-=num%10;
                num/=10;
            }
            sum+=tmp;
        }
        return Math.abs(sum);
    }
}
